package com.example.springspel.dao;

import com.example.springspel.entity.Permission;
import com.example.springspel.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PermissionRepository extends JpaRepository<Permission, Long> {
  List<Permission> findByUser(User user) ;
}